/******************************************************************************
COPYRIGHT 2012   : QOROS
Project          :
Source File Name : hwa_outputs_cfg.h
Group            : SoftWare Team
Author           :
Date First Issued: 09/05/2012
********************************Documentation**********************************
Purpose -  This file contain all pre build configurable parameters as well as
macro defines.
********************************RevisionHistory********************************
_______________________________________________________________________________
Date : MM/DD/YY    Release        Changes Description                  Author
Date : 11/20/2012    1.0

******************************************************************************/

#ifndef hwa_outputs_Cfg_h
#define hwa_outputs_Cfg_h

/* #include */
#include "system.h"
/* #define */

#define MCU_OUT		0x00
#define LSD_OUT     0x01
#define PWM_OUT		0x02
//#define L9825_OUT   0x03
//#define TLE6208_OUT 0x04

#define PWM_ON      100
#define PWM_OFF     0

#define SO_INVALID_OUT        0xFF

#define   O_PORT_T		((UINT16)&PTT)
#define   O_PORT_S		((UINT16)&PTS)
#define   O_PORT_M		((UINT16)&PTM)
#define   O_PORT_P		((UINT16)&PTP)
#define   O_PORT_J      ((UINT16)&PTJ)
#define   O_PORT_AD0		((UINT16)&PT0AD)
#define   O_PORT_AD1		((UINT16)&PT1AD)
/* typedef */

typedef enum
{
    PWMD_0 = 0,
    PWMD_1,
    NUM_OF_PWMD
} PWMD_ENUM;

typedef struct _DOUT_CONFIG_STRUCT
{
    UINT8  u8_outputIndex;
    UINT8  u8_outputType;
    UINT16  u8_portName;	// 
    UINT8  u8_pinIndex;	//
    UINT8  u8_activeLevel;
} DOUT_CONFIG_STRUCT;

/*********** OUTPUTS_ENUM *******************/
typedef enum
{
	SO_PP4_OUT	,
	SO_PP5_OUT	,
	SO_PT3_OUT	,
	SO_PT4_OUT	,
	SO_PT5_OUT	,
	SO_PAD3_OUT,
	SO_PAD4_OUT,
	SO_PAD6_OUT,
	SO_PAD7_OUT,
	SO_PAD11_OUT,
  NUM_OF_OUTPUTS
} OUTPUTS_ENUM;


/* Class definitions */

/* static variables */

/* Function prototypes */


extern const DOUT_CONFIG_STRUCT c_s_DOUT_CONFIG[NUM_OF_OUTPUTS];


/*****************************************************************************/
#endif
/*************************end of hwa_outputs_cfg.h********************************/

/******************************************************************************
 Revision Notes:

For each change to this file, be sure to record:
1. Who made the change and when the change was made.
2. Why the change was made and the intended result.

  Date     By     Reason For Change
mm/dd/yy  XXX     -----------------


******************************************************************************/


